/* ===== 管理员面板样式 ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow-x: hidden;
}

/* ===== 布局结构 ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: rgba(15, 15, 35, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: rgba(10, 10, 10, 0.3);
}

/* ===== 侧边栏 ===== */
.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 12px rgba(74, 222, 128, 0.3));
}

.sidebar-header h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4ade80, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.menu-item {
    margin: 5px 15px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item a:hover {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    transform: translateX(5px);
}

.menu-item.active a {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(6, 182, 212, 0.1));
    color: #4ade80;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.2);
}

.menu-item a i {
    width: 20px;
    margin-right: 15px;
    font-size: 1.1rem;
}

.menu-item .badge {
    margin-left: auto;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 25px;
}

/* ===== 顶部导航 ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.admin-header h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-notification {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-notification:hover {
    color: #4ade80;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-user:hover {
    background: rgba(74, 222, 128, 0.1);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(74, 222, 128, 0.3);
}

.header-user span {
    color: #fff;
    font-weight: 600;
}

/* ===== 仪表板内容 ===== */
.dashboard-content {
    padding: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.stat-card.primary::before { background: linear-gradient(90deg, #4ade80, #06b6d4); }
.stat-card.success::before { background: linear-gradient(90deg, #22c55e, #16a34a); }
.stat-card.warning::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.stat-card.info::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 222, 128, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-card.primary .stat-icon { background: linear-gradient(135deg, #4ade80, #06b6d4); }
.stat-card.success .stat-icon { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-card.warning .stat-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.info .stat-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.stat-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.stat-change.positive {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* ===== 仪表板网格 ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 222, 128, 0.2);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

.card-link {
    color: #4ade80;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #06b6d4;
}

.card-actions select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.9rem;
}

.card-content {
    padding: 25px 30px;
}

/* ===== 快速操作 ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.action-btn i {
    font-size: 1.5rem;
}

.action-btn.primary { background: linear-gradient(135deg, #4ade80, #06b6d4); }
.action-btn.success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.action-btn.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.action-btn.info { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===== 系统状态 ===== */
.system-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-indicator.warning {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-indicator.offline {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.status-item span:first-of-type {
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.status-value {
    color: #4ade80 !important;
    font-weight: 600;
}

/* ===== 最新反馈 ===== */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(74, 222, 128, 0.2);
}

.recent-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.recent-icon.bug { background: linear-gradient(135deg, #ef4444, #dc2626); }
.recent-icon.feature { background: linear-gradient(135deg, #22c55e, #16a34a); }
.recent-icon.other { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.recent-info {
    flex: 1;
}

.recent-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.recent-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.recent-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ===== 活动日志 ===== */
.activity-logs {
    max-height: 400px;
    overflow-y: auto;
}

.log-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-item:last-child {
    border-bottom: none;
}

.log-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    min-width: 80px;
}

.log-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.log-icon.info { background: #3b82f6; }
.log-icon.success { background: #22c55e; }
.log-icon.warning { background: #f59e0b; }
.log-icon.error { background: #ef4444; }

.log-content {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* ===== 按钮 ===== */
.btn-small {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-small:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 15px 20px;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .header-user span {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-header h1 {
        font-size: 1.3rem;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-bottom: 15px;
    }
    
    .card-header,
    .card-content {
        padding: 20px;
    }
    
    .dashboard-content {
        padding: 15px;
    }
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4ade80, #06b6d4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #22c55e, #0891b2);
}